package com.madi.company.contract;

import com.jaydenxiao.common.base.BaseModel;
import com.jaydenxiao.common.base.BasePresenter;
import com.jaydenxiao.common.base.BaseView;
import com.madi.company.bean.JobTypeEntity;

import java.util.List;
import java.util.Map;

import rx.Observable;

/**
 * Created by 丁宁
 * on 2016/12/15
 * 职位类别契约类
 */

public interface JobTypeContract {
    interface Model extends BaseModel {
        Observable<List<JobTypeEntity>> getJobTypeData(String fileName);
        Observable<Map<String , Integer>> getSelectedDatas(Map<String, Integer> map);
    }
    interface View extends BaseView {
        void returnProfessionTypeData(List<JobTypeEntity> data);
        void returnSelectedData(Map<String, Integer> map);
    }

    abstract static class Presenter extends BasePresenter<View,Model> {
        public abstract void getData(String fileName);
        public abstract void getSelectedData(Map<String, Integer> map);

    }
}
